<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
        班级三霸：
        <ul>
            <li v-for="name in names">{{name}}</li>
        </ul>
        <ul>
            <li v-for="(name,index) in names">{{index+1}}、{{name}}</li>
        </ul>
        <ul>
            <li v-for="i in 10">{{i}}</li>
        </ul>
        <h1 v-for="(val,key) in stu">{{key}},{{val}}</h1>
    </div>
    <script>
        const {createApp} = Vue
        createApp(
            {
                data(){
                    return {
                        names:["韩昭冰","冯海雯","尹鹏翰"],
                        stu:{
                            id:202224033214,
                            name:"韩昭冰",
                            sex:"男"
                        }
                    }
                }
            }
        ).mount("#app");
    </script>
</body>
</html>